package com.example.gateway.controller;





import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class Demo01 {
@Resource
    RedisTemplate redisTemplate;
    @GetMapping("/test")
    public String test(){
        return "gateway";
    }
    @GetMapping("/demo/pro-test/test")
    public String test02(){
        redisTemplate.opsForValue().set("gateway","http://127.0.0.1:8003/demo/pro-test");
        return "gateway02";
    }
}
